package admin_register_validator

import (
	"ginServer/modules/admin/http/admin_validators/api/admin_admin"
	"ginServer/modules/common/core/container"
	"ginServer/modules/common/global/consts"
)

// 各个业务模块验证器必须进行注册（初始化），程序启动时会自动加载到容器
func ApiRegisterValidator() {
	//创建容器
	containers := container.CreateContainersFactory()

	containers.Set(consts.ValidatorPrefix+"AdminAdminIndex", admin_admin.AdminAdminIndex{})
	containers.Set(consts.ValidatorPrefix+"AdminAdminAdd", admin_admin.AdminAdminAdd{})
	containers.Set(consts.ValidatorPrefix+"AdminAdminEdit", admin_admin.AdminAdminEdit{})
	containers.Set(consts.ValidatorPrefix+"AdminAdminUpdate", admin_admin.AdminAdminUpdate{})
	containers.Set(consts.ValidatorPrefix+"AdminAdminStatus", admin_admin.AdminAdminStatus{})
	containers.Set(consts.ValidatorPrefix+"AdminAdminDel", admin_admin.AdminAdminDel{})
	containers.Set(consts.ValidatorPrefix+"AdminAdminDelAll", admin_admin.AdminAdminDelAll{})

}
